// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import store from './store'
// import Helper from './lib'
// import VueWeChatTitle from 'vue-wechat-title'
// import FastClick from 'fastclick'
import VAnimateCss from 'v-animate-css'
// import VueResource from 'vue-resource'
// import i18n from './language'
// import vueUpload from '@websanova/vue-upload'

import VueFinger from './lib/finger'

// use fast click
// FastClick.attach(document.body)
// use VueWeChatTitle to auto change wechat title
// Vue.use(VueWeChatTitle)
// use vue-resource for http request
// Vue.use(VueResource)
Vue.use(VAnimateCss)
// Vue.use(vueUpload)
// use vue-finger
Vue.use(VueFinger)
// bind helper method to this
// Vue.prototype.$Helper = Helper
// bind global env to this
Vue.prototype.$env = process.env.APP_MODULE
Vue.config.productionTip = false

// if native env, require apicloud
// if (process.env.APP_MODULE === 'native') {
//   let rq = require('scriptjs')
//   rq('../src/js/lib.js', () => {
//     // reset console
//     for (let i in console) {
//       console[i] = () => {}
//     }
//   })
// }

/* eslint-disable no-new */
export default new Vue({
  el: '#app',
  router,
  template: '<App />',
  components: { App },
})
